#include "uart.h"

void uart_init(u8 baud)
{
    ET1=1;
    ES=1;
    EA=1;
    TH1=baud;
    TL1=baud;
    TMOD=TMOD|0X20;
    //TCON=0XC0;
    TR1=1; 
    SCON=0X50;
    PCON=0X80;    
}